package br.com.canvasForAll.model.dao;

import java.util.List;
import java.util.Map;

import javax.ejb.Stateless;
import javax.inject.Named;

import br.com.canvasForAll.model.entity.Usuario;
import br.com.canvasForAll.model.generic.dao.GenericCrudDao;
import br.com.canvasForAll.model.repository.UsuarioRepository;

@Stateless
@Named(value="usuarioRepository")
public class UsuarioDao extends GenericCrudDao<Usuario> implements UsuarioRepository {

	public UsuarioDao() {
		super(Usuario.class);
	}

	@Override
	public Usuario obterId(Long entityId) throws Exception {
		return super.obterPorId(entityId);
	}

	@Override
	public List<Usuario> obterExemplo(String namedQuery, Map<String, Object> parametros) throws Exception {
		return super.obterPorExemplo(namedQuery, parametros);
	}

}
